SmartFTP FTP Library
ISFTPConnection::Rename Method

Renames a file or directory.

IDL
HRESULT Rename(
    [in] BSTR bstrOld, 
    [in] BSTR bstrNew, 
    [in] long flags
);
Parameters

bstrOld
The name of an existing file or directory.
bstrNew
The name of the new file or directory.
nFlags
Protocol version 3 

Not used. 

Protocol version 6 

0 or a combination of 

SSH_FXF_RENAME_OVERWRITE 0x00000001 

SSH_FXF_RENAME_ATOMIC 0x00000002 

SSH_FXF_RENAME_NATIVE 0x00000004

For further information please see "8.3. Removing and Renaming Files" of SSH File Transfer Protocol.

What do you think about this topic? Send feedback!
Copyright (c) by SmartSoft Ltd. All rights reserved.